﻿using Microsoft.Practices.Unity;

namespace UnityDemo.Demo2
{
    public class Subject2 : ISubject
    {
        [InjectionConstructor]
        public Subject2([Dependency("your")]IClass classInfo)
        {
            classInfo.Name = "班级1";
        }

        public Subject2(IClass classInfo1, IClass classInfo2)
        {
            classInfo1.Name = "班级1";
            classInfo1.Name = "班级2";
        }

        public string Name { get; set; } = "科目2";
    }
}